/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aggredi.englishlearn.logic;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Serik_Idrissov
 */
public class FileAccessImpl implements FileAccess{

    @Override
    public List<String> getProposal() throws IOException{
        
        BufferedReader reader=new BufferedReader(new FileReader(new File("proposal.txt")));
        List <String> list=new ArrayList<>();
        while(reader.ready()){
            list.add(reader.readLine());
        }
        return list;
    }
    
}
